<?php
if (!isset($_GET['url']) || !isset($_GET['info'])) {
    exit();
}
?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="refresh" content="3,URL=../<?php echo $_GET['url'] ?>" />
    <title>正在跳转中...</title>
</head>

<body>

    <h2><?php echo $_GET['info'] ?><span id="time">3</span></h2>
    <script>
        let timer;
        window.onload=function(){
            timer=setInterval(function(){
                if((document.getElementById("time").innerText-1)<=0){
                    clearInterval(timer);
                }
                document.getElementById("time").innerText=parseInt(--document.getElementById("time").innerText);
            },1000)
        }
    </script>
</body>

</html>